package com.lapula.crazyface.entity;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.PointF;

import com.lapula.crazyface.R;
import com.lapula.crazyface.util.ImageUtils;

public class BeileipiEmotion extends Emotion {

	private final String expressionFolder = "expression/beileipi";
	
	public BeileipiEmotion(Context context) {
		super(context);
	}

	@Override
	protected void init() {
		List<Bitmap> pics = new ArrayList<Bitmap>();
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_01.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_02.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_03.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_04.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_05.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_06.png"));
		pics.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "beileipi_07.png"));
		OffsetRatio offset = new OffsetRatio(-0.5f, -0.5f);
		ExpressionItem item = new ExpressionItem(pics, offset, BASED_POINT_EYE_MIDDLE);
		item.mode = ExpressionItem.MODE_FULL_SCREEN;
		expressioItems.add(item);
	}
}
